Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

there also add a csrftrait to share parmater name bettewn view injection and csrfmiddleware #69

Closed
wants to merge 2 commits into from

Conversation

TiaNex-Com
Copy link

Q A
Is bugfix? ✔️/❌ no
New feature? ✔️/❌ no
Breaks BC? ✔️/❌ no

CsrfTrait to share the parameter name bettewn middleware and view injection.
use csrf trait and rename parameterName  to  formParameterName 
for the view injection also use parameterName
@TiaNex-Com TiaNex-Com changed the title there is alsow add a csrftrait to share parmater name bettewn view injection and csrfmiddleware there also add a csrftrait to share parmater name bettewn view injection and csrfmiddleware Oct 6, 2024
@vjik
Copy link
Member

vjik commented Oct 6, 2024

Trait don't can share data. Trait allow to share logic only. It's very simple code, don't need extract it to trait.

@vjik vjik closed this Oct 6, 2024
@TiaNex-Com
Copy link
Author

any way , it needs only share the parameter names from csrfviewinjection and csrf middleware,
from the crsf view injection , it initial crsftokeninterface and csrfmiddleware (which initial csrftokeninterface again and other classes not necessary)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants